freeslot("SKINCOLOR_HYPAPOWA")

skincolors[SKINCOLOR_HYPAPOWA] = {
   name = "HYPA-POWA!!!", -- Change the name with your color
    ramp = skincolors[SKINCOLOR_RED].ramp, -- replace the numbers.
    invcolor = SKINCOLOR_GREY, -- This doesn't effect the colors at all
    invshade = 1,
    chatcolor = V_GREYMAP, -- This changes chat color
    accessible = true -- this is just to make it accessible
}

local colorcycle = {
}

local slValues = { //because i keep having to fucking CHANGE THEM GOD FUCKING FUCK SHIT FUCK
    {0,255},
    {36,236},
    {73,217},
    {109,198},
    {146,179},
    {182,160},
    {219,140},
    {255,128},
    {255,96},
    {255,64},
    {255,48},
    {255,32},
    {255,16},
    {255,8},
    {255,4},
    {255,0}
}

for i = 0, 34 do
    local hue = i * 255 / 35
    local r, g, b = color.hslToRgb(hue, slValues[1][1], slValues[1][2])
    local c1 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[2][1], slValues[2][2])
    local c2 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[3][1], slValues[3][2])
    local c3 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[4][1], slValues[4][2])
    local c4 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[5][1], slValues[5][2])
    local c5 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[6][1], slValues[6][2])
    local c6 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[7][1], slValues[7][2])
    local c7 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[8][1], slValues[8][2])
    local c8 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[9][1], slValues[9][2])
    local c9 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[10][1], slValues[10][2])
    local c10 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[11][1], slValues[11][2])
    local c11 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[12][1], slValues[12][2])
    local c12 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[13][1], slValues[13][2])
    local c13 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[14][1], slValues[14][2])
    local c14 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[15][1], slValues[15][2])
    local c15 = color.rgbToPalette(r, g, b)
    r, g, b = color.hslToRgb(hue, slValues[16][1], slValues[16][2])
    local c16 = color.rgbToPalette(r, g, b)
    colorcycle[i] = {c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16}
end


addHook("ThinkFrame", function()
	skincolors[SKINCOLOR_HYPAPOWA].ramp = colorcycle[(leveltime or 0) % 35]
end)